/**
 * @Description： CourseTermService接口的实现类
 * @author： 20155872 游宇
 * @createTime: 2018-05-17 14:59
 **/

package com.campus_information_portal.service.impl;

import com.campus_information_portal.dao.CourseTermDao;
import com.campus_information_portal.service.CourseTermService;
import com.campus_information_portal.util.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * @className: CourseTermImpl
 * @Description: CourseTermService接口的实现类
 * @author: 20155872 游宇
 * @createTime: 2018-05-17 14:59
 **/
@Service
public class CourseTermImpl implements CourseTermService {
    @Autowired
    private CourseTermDao courseTermDao;
    @Override
    public Msg getCourseNameAndTeName(int stuInfoId, int termId) {
       List<Map<String,String>> mapList=courseTermDao.getCourseNameAndTeName(stuInfoId,termId);
        if (mapList.size()!=0){
        return Msg.addData(100,"成功",mapList);
        }
        return Msg.fail();
    }
}
